import i18n from '../../../../i18n';
import { Singleton } from '../../framework/common/Singleton';
export class I18nMgr extends Singleton<I18nMgr>() {
    static t(key: string, params?: object): string {
        switch (key) {
            case 'game.waiting':
                return i18n.t('game.waiting');
            case 'game.result':
                return i18n.t('game.result', params as any);
        }
        return '';
    }
}
